<?php
$id = explode("_",$_GET["_URL_"][1])[1];
$up = M("article")->query("SELECT * FROM szflame_article AS n WHERE n.`id` < ".$id." ORDER BY n.`id` DESC  LIMIT 0,1");
$down = M("article")->query("SELECT * FROM szflame_article AS n WHERE n.`id` > ".$id." ORDER BY n.`id` DESC  LIMIT 0,1");

?>
    <div class="new-ist-box newinfo-box">
       
        <!-- 当前位置 -->
        <div class="wrap news-info">
            <h6 class="title"><?php echo $title; ?></h6>
            <div class="info-time">
                发布时间：<?php echo date('Y-m-d',$createtime); ?>
            </div>
           <?php echo $content;?>
        </div>
        <div class="wrap read-continue">
            <div class="r-prev">
                <a href="/index.php/New/detail_<?php echo $up[0]['id'];?>"><?php echo $up[0]['title'];?></a>
            </div>
            <div class="r-next">
                <a href="/index.php/New/detail_<?php echo $down[0]['id'];?>"><?php echo $down[0]['title'];?></a>
            </div>
        </div>
    </div>
    <script type="text/javascript">
    var jiathis_config = {
        url: "sssss", //地址
        title: "我已经上传了我家萌主的照片奥，赶快来给他投票吧！", //标题
        summary: "我已经上传了我家萌主的照片奥，赶快来给他投票吧！", //摘要
        pic: "", //分享图片
        data_track_clickback: true

    }
    </script>
  <script type="text/javascript" src="http://v3.jiathis.com/code/jia.js" charset="utf-8"></script>
</body>

</html>